package org.acme.server.utils;

import org.acme.server.po.SysServer;

import java.util.ArrayList;
import java.util.List;

public class CollectionUtils {

    public static List<Long> remove(List<SysServer> list , Long id){
        List<Long> idList = new ArrayList<>();
        for (SysServer sysServer : list) {
            if (sysServer.getId() != id){
                idList.add(sysServer.getId());
            }
        }
        return idList;
    }
}
